package com.ruibang.glass.purchase.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruibang.glass.purchase.domain.req.PurchaseOrderReq;
import com.ruibang.glass.purchase.entity.PurchaseOrderDetails;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 采购订单详情表 Mapper 接口
 * </p>
 *
 * @author mameng
 * @since 2024-03-28
 */
@Mapper
public interface PurchaseOrderDetailsMapper extends BaseMapper<PurchaseOrderDetails> {

    IPage<PurchaseOrderDetails> getPage(Page<PurchaseOrderDetails> page, @Param("purchaseOrderReq") PurchaseOrderReq purchaseOrderReq);

    /**
     * 修改到货状态为部分到货
     * @param detailId
     */
    void updateOrderStatus(@Param("detailId") String detailId);
}
